//
//  PublicTool.h
//  YHOCR
//
//  Created by 杨杨子 on 2018/7/25.
//  Copyright © 2018年 杨杨子. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface PublicTool : NSObject
//获取图片某一点的颜色,即使是相同颜色取值也有差异
+ (UIColor *)colorAtPixel:(CGPoint)point WithImage:(UIImage *)bitmap;
// 16进制转10进制
+ (NSNumber *)numberHexString:(NSString *)aHexString;
// UIColor转#ffffff格式的字符串
+ (NSString *)hexFromUIColor:(UIColor *)color;
//截取图片
+(UIImage *)getPartOfImage:(UIImage *)img rect:(CGRect)partRect;
@end
